package com.lsyw.intergrate.common.MybatisPlus;

import com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import org.springframework.stereotype.Component;

/**
 * @author liulei
 * @version 1.0
 * @date 2022/3/9 15:46
 */
@Component
public class MybatisPlusColumnResolver {
    public static  <T> ColumnResolver<T> create() {
        return new ColumnResolver<>();
    }



    /**
     * @author
     * @date
     */
    public static class ColumnResolver<T> extends AbstractLambdaWrapper<T, ColumnResolver<T>> {

        @Override
        protected ColumnResolver<T> instance() {
            return null;
        }

        @Override
        public String columnsToString(SFunction<T, ?>... columns) {
            return super.columnsToString(columns);
        }

        @Override
        public String columnsToString(boolean onlyColumn, SFunction<T, ?>... columns) {
            return super.columnsToString(onlyColumn, columns);
        }

        @Override
        public String columnToString(SFunction<T, ?> column) {
            return super.columnToString(column);
        }

        @Override
        public String columnToString(SFunction<T, ?> column, boolean onlyColumn) {
            return super.columnToString(column, onlyColumn);
        }
    }
}
